package com.seleniti.enpareja.controller.model.integration.service;

import org.ioc.commons.integration.common.RequestManager;
import org.ioc.commons.integration.service.Service;

import com.seleniti.enpareja.controller.common.domain.LoggedUserInfo;

public interface SecurityManagementService extends Service {

	public RequestManager<LoggedUserInfo> getLoggedUserInfo();

	public RequestManager<LoggedUserInfo> tryLogin(String loginName, String password);

	public RequestManager<Void> logout();

	public RequestManager<String> getGoogleLoginExternalUrl(String requestBackUrl);

	public RequestManager<String> getGoogleLogoutExternalUrl(String requestBackUrl);

	public RequestManager<Boolean> isApplicationRunningOnline();

	public RequestManager<Void> updateLastAccess(String userId);

}
